"""
计数一个字符串有几个a，for循环
"""
str="adsadadafazcvzjadfsdagssv"
i=0
for x in str:
    if x=="a":
        i+=1
print(f"一共有{i}个a")